-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use regular (not Perl) grep syntax in scripts #887
Use regular (not Perl) grep syntax in scripts #887
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @jwhui Could you please review when you get a chance? When merging, please squash and merge
@brian-level looks like https://github.com/openthread/ot-efr32/actions/runs/9514548986/job/26240815333#step:8:176 https://github.com/openthread/ot-efr32/actions/runs/9514548986/job/26240815333#step:8:216 |
script/generate
Outdated
project_name=$(grep -oP 'project_name: \K(.*)' "${slcp}") | ||
project_line=$(grep 'project_name: ' "${slcp}") | ||
project_name="${project_line//project_name:/}" | ||
project_name="${project_line// /}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_name="${project_line// /}" | |
project_name="${project_name// /}" |
https://github.com/openthread/ot-efr32/actions/runs/9521284214/job/26248388553?pr=887#step:8:178
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @brian-level ! @jwhui please review when you can 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍🏼
Mac platforms are become more locked-down and when grep is installed
by XCode for example it is a BSD version not GNU version so doesn't
have the "-P" option to use perl patterns. This fixes scripts to not
depend on GNU grep.